/**
 * Created by Administrator on 2015/12/10 0010.
 */

module.exports = function() {
         this.check = function(req,res,next){
           if ('undefined' === (typeof req.cookies.IP))
           {
               res.render('login',{'title':'登录','message':'页面已经过期请重新登录'});
           }
            next();
        };
    }


